Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gentle parallax animation on ImageView. #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

alexanderbezverhni
Copy link

Limit parallax distance to some relative value, to make parallax animation more gentle.
Example: for an ImageView with 400x300 dimensions, we set an image with 400x1000 dimensions.
Enabling Y axis animation, we will experience very "aggressive" animation, while image will be moved
by 600 pixels vertically. Setting factor to 1.5f will result in 150px diff: 300*1.5=150

@@ -32,7 +32,7 @@ TextView | PEWTextView
Gradle dependencies:

```groovy
compile 'com.fmsirvent:parallaxeverywhere:1.0.4'
compile 'com.github.alexanderbezverhni:parallaxeverywhere:1.0.0'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I can't accept the PR with all this lines.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peer-reviewed

@jmh8907
Copy link

jmh8907 commented Apr 6, 2019

PEWTextView
Gradle dependencies:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants